package com.kang.feign;


import com.kang.util.WebResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "base-oss")
public interface UserOssFeign {


    @PostMapping(value = "/oss/file/fileUpload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public WebResponse fileUpload(MultipartFile file);

    @PostMapping(value = "/oss/file/videoFileUpload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public WebResponse videoFileUpload(MultipartFile file);
}
